//  tts.cpp
a
b
c
merge
//  chuangzhi2.2.1
//
//  Created by Diluga on 15/7/16.
//  Copyright (c) 2015年 Diluga. All rights reserved.
//
abc
include "tts.h"
// map::count
include <iostream>
include <map>
1
2
3
4
5
6
{
    std::map<char,int> mymap;
    char c;
    
    mymap ['a']=101;
    mymap ['c']=202;
    mymap ['f']=303;
    
    for (c='a'; c<'h'; c++)
    {
        std::cout << c;
        if (mymap.count(c)>0)
            std::cout << " is an element of mymap.\n";
        else
            std::cout << " is not an element of mymap.\n";
    }
    
    return 0;
}
